package org.mms.service;

import org.mms.pojo.entity.News;

import java.util.List;

public interface NewsService {
    List<News> list();
    News getById(Long id);
    News create(String title, String content, String coverUrl);
    News update(Long id, String title, String content, String coverUrl);
    void delete(Long id);
    List<News> search(String keyword);
}